<template>
  <div class="about">
    <h1>This is an about page</h1>
    <button @click="test">123</button>
    <button @click="toUserAddress1">1123</button>
  </div>


</template>
<script>
  export default {
    data() {
      return {
        inf:{num:'begin',
          num_inf:''}


      }
    },
    methods: {
      test(){
        //查询送货地址
        //URL地址必须是大写不然会报错
        this.$axios.post('Axios/sb',this.$qs.stringify({
          num_inf :this.inf
        })).then(response=>{

          console.log("yes")
        }).catch(error=>{
          console.log(error)
        })
      },

      toUserAddress1() {
        //添加
        this.$axios.post('DeliveryAddressController/saveDeliveryAddress', this.$qs.stringify(

        )).then(response => {
          console.error('yes');
        }).catch(error => {
          console.error(error);
        });
      }},
  }
</script>
